﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

namespace bezlimitu.App_Code
{
    public class LinkParser
    {
        public static Agent getAgent(String link)
        {
            if (link.ToLower().Contains("egofiles"))
                return new EgofilesAgent(link);
            if (link.ToLower().Contains("netload"))
                return new NetloadAgent(link);
            if (link.ToLower().Contains("rapidgator"))
                return new RapidgatorAgent(link);

            return null;
        }
    }
}